package com.sinosoft.weixin.controller.vo;


/**
 * Created by doney_mac on 2017/12/24.
 */
public class ResultMsgVO {
    private String returnCode;

    private String message;

    public String getReturnCode() {
        return returnCode;
    }

    public void setReturnCode(String returnCode) {
        this.returnCode = returnCode;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public static  ResultMsgVO resultFail(String failReason){
        ResultMsgVO tResultMsgVO=new ResultMsgVO();
        tResultMsgVO.setReturnCode("1");
        tResultMsgVO.setMessage(failReason);
        return tResultMsgVO;
    }

    public static ResultMsgVO resultSucc(){
        ResultMsgVO tResultMsgVO=new ResultMsgVO();
        tResultMsgVO.setReturnCode("0");
        tResultMsgVO.setMessage("交易成功!");
        return tResultMsgVO;
    }
}
